﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace bd2wpf
{
   public partial class MainWindow : Window
    {
        public static DataSourceMyClass dataSourceMyClass = new DataSourceMyClass();

        public class DataSourceMyClass
        {
            public List<MyClass> myClasses = new List<MyClass>();
            public List<MyClass> MyClasses
            {
                get { return myClasses; }
            }
        }

        public class MyClass //Создание класса-записи
        {
            public MyClass(string name, string lastName, string patronymic,
                string sexString, string mobily, string iinternal, string eMail,
                string photo, string city, string street, string home, string flat,
                string position, string subdivision, string info)
            {
                Name = name; LastName = lastName; Patronymic = patronymic;
                SexString = sexString; Mobily = mobily; Internal = iinternal;
                EMail = eMail; Photo = photo; City = city; Street = street;
                Home = home; Flat = flat; Position = position; Subdivision = subdivision; Info = info;
            }

            public string Name { get; set; }
            public string LastName { get; set; }
            public string Patronymic { get; set; }
            public string SexString { get; set; }
            public string Mobily { get; set; }
            public string Internal { get; set; }
            public string EMail { get; set; }
            public string Photo { get; set; }
            public string City { get; set; }
            public string Street { get; set; }
            public string Home { get; set; }
            public string Flat { get; set; }
            public string Position { get; set; }
            public string Subdivision { get; set; }
            public string Info { get; set; }
        }

    }
}
